<?php
/**
* ajax专用类
*/
class ExtendControl extends Control
{
	public function ajax_city()
	{
		if(IS_AJAX){
			$cityid = Q('post.cityid',0,'intval');
			$cityModel = K('City');
			$data = $cityModel->get_city_data($cityid);
			$this->ajax($data);
		}
	}

	public function ajax_pos()
	{
		if(IS_AJAX){
			$posid = Q('post.posid',0,'intval');
			$posModel = K('PosCate');
			$data = $posModel->get_pos($posid);
			$this->ajax($data);
		}
	}
}

 ?>